const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,//用户token
  userId:state=>state.user.userInfo.userId,//用户id
  avatar: state => state.user.userInfo.staffPhoto,//用户头像
  name: state => state.user.userInfo.username,//用户名
  routes: state => state.user.routes,//登录用户权限对应路由能访问路由
  company:state=>state.user.userInfo.company,//用户所在公司名称
  departmentName:state=>state.user.userInfo.departmentName//用户所在部门名称

}
export default getters
